﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTVeterinariaServices.Dominio;
using System.ServiceModel.Web;


namespace RESTVeterinariaServices
{
    [ServiceContract]
    public interface IVeterinarioService
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Veterinarios", ResponseFormat = WebMessageFormat.Json)]
        Veterinario CrearVeterinario(Veterinario VeterinarioACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Veterinarios/{IdVeterinario}", ResponseFormat = WebMessageFormat.Json)]
        Veterinario ObtenerVeterinario(string IdVeterinario);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Veterinarios", ResponseFormat = WebMessageFormat.Json)]
        Veterinario ModificarVeterinario(Veterinario VeterinarioAModificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "Veterinarios/{IdVeterinario}", ResponseFormat = WebMessageFormat.Json)]
        void EliminarVeterinario(string IdVeterinario);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Veterinarios", ResponseFormat = WebMessageFormat.Json)]
        List<Veterinario> ListarTodos();
    }
}
